import request from '@/utils/request'

// 获取用户列表
export function getInfoList(params) {
  return request({
    url: '/admin/user/page',
    method: 'GET',
    params
  })
}

// 添加用户
export function addUser(data) {
  return request({
    url: '/admin/user',
    method: 'POST',
    data
  })
}

// 删除用户
export function delUser(id) {
  return request({
    url: `/admin/user/${id}`,
    method: 'DELETE',
  })
}

